package com.dsbj.mp.icardservice.feign;


import com.dsbj.common.msg.ResponseMessage;
import com.dsbj.mp.icardservice.feign.callback.WxApiFeignCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


/**
 * Created with idea
 * @author : lvdong
 * Date: 2017/11/7 0007
 * Time: 11:07
 */
@FeignClient(name = "dsbj-wx-api", fallbackFactory = WxApiFeignCallback.class)
public interface WxApiFeign {

    @GetMapping(value = "/user/getOpenIdByCode")
    ResponseMessage<String> getOpenIdByCode(@RequestParam("code") String code);



}
